#include <stdio.h>

#if 0
int main(int argc, char const *argv[])
{
    int a = 15, b = 9,c;
    double x = 15, y = 8,z;
    c = a + b;
    printf("c=%d\n",c);

    c = a - b;
    printf("c=%d\n",c);

    c = a * b;
    printf("c=%d\n",c);

    c = a / b;
    printf("c=%d\n",c);

    c = a % b;
    printf("c=%d\n",c);

    z = x + y;
    printf("z=%f\n",z);

    z = x - y;
    printf("z=%f\n",z);

    z = x * y;
    printf("z=%f\n",z);

    z = x / y;
    printf("z=%f\n",z);

    return 0;
}


#else

int main(int argc, char const *argv[])
{
    int x = 5, y = 18;
    int ret = 0;

    ret = (x >= 5) && (y < 20); // 结果值为1
    printf("1:ret=%d\n", ret);
    ret = ((x + 1) >= 0) && (y < 17); // 结果值为0
    printf("2:ret=%d\n", ret);

    ret = ((x - 8) >= 0) && (y == 18); // 结果值为0
    printf("3:ret=%d\n", ret);

    ret = ((x - 5) > 0) && (y != 18); // 结果值为0
    printf("4:ret=%d\n", ret);
    printf("\n");

    ret = ((x >= 5)) || (y < 20); // 结果值为1
    printf("5:ret=%d\n", ret);

    ret = ((x + 1) >= 0) || (y < 17); // 结果值为1
    printf("6:ret=%d\n", ret);

    ret = ((x - 8) >= 0) || (y == 18); // 结果值为1
    printf("7:ret=%d\n", ret);

    ret = ((x - 5) > 0) || (y != 18); // 结果值为0
    printf("8:ret=%d\n", ret);

    return 0;
}


#endif
